package cn.akwangl.prototype;

import java.io.Serializable;

/**
 * 作者：阿坤
 * 创建时间：16:31 2019/8/15
 * 功能描述：学生类
 */
public class Student implements Cloneable, Serializable {

    private static final long serialVersionUID = 868345254546892189L;

    private String name;
    private int age;

    public Student() {
    }

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    protected Student clone() {
        try {
            return (Student)super.clone();
        }catch (Exception e){

        }
        return null;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
